const connect=require('./index')
const query =(sql)=>{
    return new Promise((resolve,reject)=>
    {
        connect.query(sql,(err,data)=>
        {
            if(!err)
            {
                resolve(data)
            }
            else
            {
                reject('失败')
            }
        })
    })
}
module.exports=query